import Vue from 'vue'
import App from './App'
import './uni.promisify.adaptor'
import './permission'
import moment from 'moment'
Vue.config.productionTip = false
Vue.prototype.$moment = moment

App.mpType = 'app'

if ( process.env.VUE_APP_PLATFORM === 'h5' && process.env.VUE_APP_USE_VCONSOLE === 'true' ) {
  // eslint-disable-next-line no-unused-vars
  const vConsole = new VConsole()
}

const app = new Vue({
  ...App
})
app.$mount()
